<template>
	<view class="page">
		<view class="bar_info" :style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx'}">
			<view class="title_bar">
				<view class="title_bar_left" @tap.stop="handleJump" data-type="BACK">
					<image class="title_bar_left_icon" :src='STATIC_URL+"5.png"'></image>
				</view>
				<view class="title_bar_center">
					订单详情
				</view>
				<view class="title_bar_right"></view>
			</view>
		</view>
		<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
		<view class="loading_css" v-if="isShow">
			<u-loading size="36" color="#41AF36"></u-loading>
			<view class="loading_text">加载中</view>
		</view>
		<template v-else>
			<view class="order_status flex justify-between">
				<view class="status_le flex align-center">
					<image :src='STATIC_URL+"2.png"' mode=""></image>
					<text v-if="detailsInfo.status == 0">待受理</text>
					<!-- <text v-if="detailsInfo.status == 1">待出库</text> -->
					<text v-if="detailsInfo.status == 1 || detailsInfo.status == 2">收货</text>
					<text v-if="detailsInfo.status == 3">异常处理</text>
					<!-- <text v-if="detailsInfo.status == 3 && detailsInfo.lose_status == 1">异常处理完成</text>
					<text v-if="detailsInfo.status == 3 && detailsInfo.lose_status == 2">异常待处理</text>
					<text v-if="detailsInfo.status == 3 && detailsInfo.lose_status == 3">异常审核驳回</text> -->
					<text v-if="detailsInfo.status == 4">已完成</text>
					<text v-if="detailsInfo.status == 5">已取消</text>
					<text v-if="detailsInfo.status == 6">已拒绝</text>
					<!-- <text v-if="detailsInfo.status == 7 && detailsInfo.return_status == 2">退款中</text>
					<text v-if="detailsInfo.status == 7 && (detailsInfo.return_status == 1 || detailsInfo.return_status == 3)">退款完成</text>
					<text v-if="detailsInfo.status == 7 && detailsInfo.return_status == 4">退款驳回</text> -->
					<text v-if="detailsInfo.status == 7">订单退款</text>
				</view>
				<view class="status_ri">
					<image :src='STATIC_URL+"37.png"' mode=""></image>
				</view>
			</view>
			<view class="shop_info">
				<view class="item_info" v-for="(item, index) in goods" :key="index">
					<view class="shop_item flex align-center">
						<view class="shop_img">
							<u-lazy-load :image="item.product_image" img-mode="aspectFill" height="140"
								border-radius="8"></u-lazy-load>
						</view>
						<view class="information">
							<view class="shop_name">{{item.product_name}}</view>
							<view class="shop_price flex align-center" v-if="detailsInfo.status != 4">
								<image :src='STATIC_URL+"38.png"' mode=""></image>
								<text>
									<text v-if="user.is_show_price == 1">￥{{item.price}}元</text>
									<text>×</text>
									<text>{{Number(item.count)}}</text>
									<text>{{filterDictionary(item.product_unit)}}</text>
								</text>
							</view>
							<view v-else style="height: 24rpx;"></view>
							<view class="price_info">
								<template v-if="user.is_show_price == 1">
									<text class="price_1">￥</text>
									<text class="price_2">{{item.total_price}}</text>
									<text class="price_4"></text>
								</template>
								<text class="price_3">规格：{{item.specification ? item.specification : '无'}}</text>
							</view>
							<view class="flex align-center" style="margin-top: 8rpx;"
								v-if="detailsInfo.status == 0 || detailsInfo.status == 1 || detailsInfo.status == 2">
								<view class="edit_btn flex align-center justify-center" @tap.stop="editGood(index, 1)" v-if="detailsInfo.status == 0">
									修改
								</view>
								<view class="edit_btn flex align-center justify-center" @tap.stop="editGood(index, 1)" v-if="(detailsInfo.status == 1 || detailsInfo.status == 2) && detailsInfo.is_modify == 1 && detailsInfo.approver_result == 1">修改</view>
								<view v-if="detailsInfo.status == 0 || ((detailsInfo.status == 1 || detailsInfo.status == 2) && detailsInfo.is_modify == 1 && detailsInfo.approver_result == 1)" class="del_btn flex align-center justify-center"
									@tap.stop="editGood(index, 2)">删除
								</view>
							</view>
						</view>
						<!-- 退货 -->
						<view class="flex" v-if="detailsInfo.status == 1 || detailsInfo.status == 2">
							<image @tap.stop="goReturn(index)" class="return_view" :src='STATIC_URL+"39.png"' mode="">
							</image>
							<image @tap.stop="goDeclaration(index)" class="return_view_1" :src='STATIC_URL+"40.png"'
								mode=""></image>
						</view>

					</view>
					<view class="remark_text" v-if="item.remark">备注：{{item.remark}}</view>
				</view>

				<view class="merchandise flex align-center justify-between">
					<view class="merchandise_le">商品小计</view>
					<view class="merchandise_ri" v-if="user.is_show_price == 1">￥{{detailsInfo.total_price}}</view>
					<view class="merchandise_ri" v-else>￥0</view>
				</view>
				<view class="shop_amount flex align-center justify-end">
					<text class="amount_1">合计</text>
					<text class="amount_2" v-if="user.is_show_price == 1">￥{{detailsInfo.total_price}}</text>
					<text class="amount_2" v-else>￥0</text>
				</view>
			</view>
			<view class="content_bg">
				<view class="content_title">收货信息</view>
				<view class="content_item flex align-center justify-between">
					<view class="content_item_le">收货人</view>
					<view class="content_item_ri">{{detailsInfo.consignee}}</view>
				</view>
				<view class="content_item flex align-center justify-between">
					<view class="content_item_le">收货地址</view>
					<view class="content_item_ri">{{detailsInfo.receiving_address}}</view>
				</view>
				<view class="content_item flex align-center justify-between">
					<view class="content_item_le">联系电话</view>
					<view class="content_item_ri">{{detailsInfo.tel}}</view>
				</view>
			</view>

			<view class="content_bg" v-if="receipt_image.length > 0" style="padding-bottom: 0;">
				<view class="content_title">收货凭据</view>
				<view class="receipt_image">
					<image v-for="(v, k) in receipt_image" :key="k" :src="v" mode="aspectFill"
						@tap.stop="previewImage(k)"></image>
				</view>
			</view>
			<view class="content_bg">
				<view class="content_title">订单信息</view>
				<view class="content_item flex align-center justify-between">
					<view class="content_item_le">订单编号</view>
					<view class="content_item_ri flex align-center">
						<view class="">{{detailsInfo.order_no}}</view>
						<view class="copy_text" @tap.stop="copyOrderNo(detailsInfo.order_no)">复制</view>
					</view>
				</view>
				<view class="content_item flex align-center justify-between">
					<view class="content_item_le">下单时间</view>
					<view class="content_item_ri">{{detailsInfo.created_at}}</view>
				</view>
				<view class="content_item flex align-center justify-between">
					<view class="content_item_le">配送时间</view>
					<view class="content_item_ri">{{detailsInfo.dispatching_time}}</view>
				</view>
				<view class="content_item flex align-center justify-between">
					<view class="content_item_le">备注</view>
					<view class="content_item_ri flex align-center self-end">
						<view class="" v-if="!remark_status">{{detailsInfo.remark ? detailsInfo.remark : '无'}}</view>
						<input v-else class="remark_input" v-model="detailsInfo.remark" placeholder="请输入备注" placeholder-style="font-size:26rpx;" :focus="true" type="text">
						<view class="copy_text" v-if="!remark_status" @tap.stop="editRemark">修改</view>
						<view class="copy_text" v-else @tap.stop="confirmRemark">保存</view>
					</view>
				</view>
			</view>
			<view class="content_bg" v-if="detailsInfo.is_modify == 1 || detailsInfo.is_modify == 2">
				<view class="content_title">申请信息</view>
				<view class="content_item flex align-center justify-between">
					<view class="content_item_le">申请时间</view>
					<view class="content_item_ri">{{detailsInfo.apply_time}}</view>
				</view>
				<view class="content_item flex align-center justify-between">
					<view class="content_item_le">审批人</view>
					<view class="content_item_ri">{{detailsInfo.nickname ? detailsInfo.nickname : '无'}}</view>
				</view>
				<view class="content_item flex align-center justify-between">
					<view class="content_item_le">联系电话</view>
					<view class="content_item_ri">{{detailsInfo.phone ? detailsInfo.phone : '无'}}</view>
				</view>
				<view class="content_item flex align-center justify-between">
					<view class="content_item_le">审核状态</view>
					<view class="content_item_ri">
						<text v-if="detailsInfo.approver_result == 0">待审批</text>
						<text v-if="detailsInfo.approver_result == 1" style="color: #41AF36;">审批通过</text>
						<text v-if="detailsInfo.approver_result == 2" style="color: #D43C3B;">审批拒绝</text>
					</view>
				</view>
				<view class="content_item flex align-center justify-between" v-if="detailsInfo.approver_result == 2">
					<view class="content_item_le">驳回原因</view>
					<view class="content_item_ri" style="color: #D43C3B;">{{detailsInfo.reject_reason}}</view>
				</view>
			</view>
			<view class="details_btn flex align-center justify-end">
				<view class="btn_1" v-if="(detailsInfo.status == 1 || detailsInfo.status == 2) && (detailsInfo.is_modify == 0 || detailsInfo.is_modify == 2)" @tap.stop="modifyOrder">申请修改</view>
				<view class="btn_1" @tap.stop="copyOrder">复制订单</view>
				<view class="btn_1" v-if="detailsInfo.status == 0" @tap.stop="cancelOrder">取消订单</view>
				<view class="btn_1"
					v-if="(detailsInfo.status == 1 || detailsInfo.status == 2) && !detailsInfo.receipt_image"
					@tap.stop="getOrderTake">订单收货</view>
				<view class="btn_1"
					v-if="(detailsInfo.status == 1 || detailsInfo.status == 2) && detailsInfo.receipt_image" @tap.stop="editReceiptImage">已收货</view>
			</view>

			<view style="height: 120rpx;"></view>
		</template>

		<u-popup v-model="popupShow1698293086456" border-radius="24" :mask="true" :mask-close-able="true" mode='center'>
			<!---删除历史记录弹窗flex布局开始-->
			<view class="flex flex-direction flex-wrap align-center search_flex_2">
				<text class='search_fd2_0'>提示</text>
				<text class='search_fd2_1'>确定取消该订单吗？</text>
				<view class='flex flex-wrap align-center search_fd2_2'>
					<view class='search_fd2_2_c0 flex align-center justify-center'
						@tap.stop="popupShow1698293086456=false">取消</view>
					<view class='search_fd2_2_c1 flex align-center justify-center' @tap.stop="confirmCancel()">确认</view>
				</view>
			</view>
		</u-popup>


		<u-popup v-model="del_show" border-radius="24" :mask="true" :mask-close-able="true" mode='center'>
			<!---删除历史记录弹窗flex布局开始-->
			<view class="flex flex-direction flex-wrap align-center search_flex_2">
				<text class='search_fd2_0'>提示</text>
				<text class='search_fd2_1'>确定删除该商品吗？</text>
				<view class='flex flex-wrap align-center search_fd2_2'>
					<view class='search_fd2_2_c0 flex align-center justify-center' @tap.stop="del_show=false">取消</view>
					<view class='search_fd2_2_c1 flex align-center justify-center' @tap.stop="delGood">确认</view>
				</view>
			</view>
		</u-popup>


		<u-popup v-model="edit_show" mode="bottom" border-radius="40">
			<view class="po_title">
				<image @tap.stop="edit_show=false" :src='STATIC_URL+"30.png"' mode="aspectFill"></image>
			</view>
			<view class="shop_content flex">
				<view class="item_left_img">
					<u-lazy-load :image="editGoodInfo.product_image" img-mode="aspectFill" height="180"
						border-radius="8"></u-lazy-load>
				</view>
				<view class="item_right">
					<view class="shop_name">{{editGoodInfo.product_name}}</view>
					<view class="shop_price">
						<view class="price_text">
							<text class="price_3"
								v-if="editGoodInfo.specification">规格：{{editGoodInfo.specification}}</text>
						</view>
						<view class="price_text" style="margin-top: 10rpx;">
							<template v-if="user.is_show_price == 1">
								<text class="price_1">￥</text>
								<text class="price_2">{{editGoodInfo.price}}</text>
							</template>
							<text class="price_3">单位：{{filterDictionary(editGoodInfo.product_unit)}}</text>
						</view>
					</view>
				</view>
			</view>
			<view class="edit_item">
				<view class="edit_item_1">数量：</view>
				<input v-model="editGoodInfo.count" class="edit_item_2" type="text" placeholder="请输入下单数量"
					placeholder-style="font-size: 26rpx;">
			</view>
			<view class="edit_item" v-if="detailsInfo.status == 0">
				<view class="edit_item_1">备注：</view>
				<input v-model="editGoodInfo.remark" class="edit_item_2" type="text" placeholder="请输入备注"
					placeholder-style="font-size: 26rpx;">
			</view>
			<view class="confirm_btn flex align-center justify-between">
				<view class="add_btn_1 flex align-center justify-center" @tap.stop="edit_show=false">取消</view>
				<view class="add_btn_2 flex align-center justify-center" @tap.stop="confirmEdit">确定</view>
			</view>
		</u-popup>
		
		<u-mask :show="modifyShow">
			<view class="warp">
				<view class="rect" @tap.stop>
					<view class="authentication_title">申请修改订单</view>
					<view class="authentication_text">
						<textarea v-model="modifyRemark" name="" id="" cols="30" rows="10" maxlength="100" placeholder="请输入申请说明" placeholder-style="font-size: 28rpx;"></textarea>
					</view>
					<view class="authentication_btn">
						<view class="btn_1 flex align-center justify-center" @click="clearModify">取消</view>
						<view class="btn_2 flex align-center justify-center" @click="confirmModify">确认</view>
					</view>
				</view>
			</view>
		</u-mask>
	</view>
</template>

<script>
	import {
		validate
	} from '@/common/utils/validate.js'
	export default {
		data() {
			return {
				popupShow1698293086456: false,
				edit_show: false,
				del_show: false,
				image: '/static/index/3.png',
				isShow: true,
				order_no: "",
				detailsInfo: {},
				goods: [],
				user: {},
				editGoodInfo: {},
				receipt_image: [],
				goodsIndex: 0,
				remark_status: false,
				modifyShow: false,
				modifyRemark: "",  // 修改申请备注
			}
		},
		onLoad(options) {
			let {
				order_no
			} = options;
			if (order_no !== undefined) this.order_no = order_no;
		},
		onShow() {
			this.user = global.userInfo;
			this.getDetails();
		},
		// 下拉刷新
		onPullDownRefresh() {
			this.isShow = true;
			this.getDetails();
		},
		methods: {
			getDetails() {
				this.$api.get(global.apiUrls.gylOrderDetails, {
					order_id: this.order_no
				}).then(res => {
					// console.log(res);
					uni.stopPullDownRefresh();
					this.isShow = false;
					if (res.data.code == 200) {
						this.detailsInfo = res.data.data;
						if (this.detailsInfo.receipt_image) {
							this.receipt_image = this.detailsInfo.receipt_image.split(',');
						}
						this.goods = res.data.data.goods;
					} else {
						this.$message.info(res.data.message);
					}
				})
			},
			// 复制订单
			copyOrder() {
				this.$api.post(global.apiUrls.gylCopyOrder, {
					order_id: this.order_no
				}).then(res => {
					this.$message.info(res.data.message);
				})
			},
			// 取消订单  gylOrderCancel
			cancelOrder() {
				this.popupShow1698293086456 = true;
			},
			confirmCancel() {
				this.popupShow1698293086456 = false;
				this.$api.post(global.apiUrls.gylOrderCancel, {
					order_id: this.order_no
				}).then(res => {
					this.$message.info(res.data.message);
					if (res.data.code == 200) {
						this.isShow = true;
						this.getDetails();
					}
				})
			},
			// 提报异常
			goDeclaration(index) {
				global.orderShop = this.goods[index];
				uni.navigateTo({
					url: '/pages/my/abnormalDeclaration'
				})
			},
			// 提交退货
			goReturn(index) {
				global.orderShop = this.goods[index];
				uni.navigateTo({
					url: '/pages/my/returnGoods'
				})
			},
			// 订单收货  gylTake
			getOrderTake() {
				uni.navigateTo({
					url: '/pages/my/receiptCertificate?id=' + this.order_no + '&type=1'
				})
			},
			editReceiptImage() {
				global.receipt_image = this.detailsInfo.receipt_image;
				uni.navigateTo({
					url: '/pages/my/receiptCertificate?id=' + this.order_no + '&type=2'
				})
			},
			editGood(index, type) {
				// type 1修改  2删除
				this.goodsIndex = index;
				let goodsInfo = JSON.stringify(this.goods[index]);
				this.editGoodInfo = JSON.parse(goodsInfo);
				this.editGoodInfo.count = Number(this.editGoodInfo.count);
				if (type == 1) {
					this.edit_show = true;
				} else if (type == 2) {
					this.del_show = true;
				}
			},
			// 删除商品
			delGood() {
				this.del_show = false;
				this.$api.post(global.apiUrls.gylDelGood, {
					order_detail_id: this.editGoodInfo.id
				}).then(res => {
					this.$message.info(res.data.message);
					if (res.data.code == 200) {
						this.isShow = true;
						this.getDetails();
					}
				})
			},
			// 修改订单商品  gylUploadGood
			confirmEdit() {
				if (isNaN(Number(this.editGoodInfo.count))) {
					this.$message.info('请输入正确的数量');
					return;
				}
				if (this.editGoodInfo.count <= 0) {
					this.$message.info('数量必须大于0');
					return false;
				}

				this.edit_show = false;
				this.$api.post(global.apiUrls.gylUploadGood, {
					order_detail_id: this.editGoodInfo.id,
					count: this.editGoodInfo.count,
					remark: this.editGoodInfo.remark
				}).then(res => {
					this.$message.info(res.data.message);
					if (res.data.code == 200) {
						// this.isShow = true;
						// this.getDetails();
						this.goods[this.goodsIndex].count = this.editGoodInfo.count;
						this.goods[this.goodsIndex].remark = this.editGoodInfo.remark;
					}
				})
			},
			// 修改订单备注
			editRemark() {
				this.remark_status = true;
			},
			confirmRemark() {
				this.$api.post(global.apiUrls.gylEditRemark, {
					order_id: this.order_no,
					remark: this.detailsInfo.remark
				}).then(res => {
					this.$message.info(res.data.message);
					if (res.data.code == 200) {
						this.remark_status = false;
					}
				})
			},
			// 提交修改订单申请
			modifyOrder() {
				this.modifyShow = true;
			},
			clearModify() {
				this.modifyRemark = "";
				this.modifyShow = false;
			},
			confirmModify() {
				if (!this.modifyRemark) {
					this.$message.info('请输入申请说明');
					return;
				}
				this.modifyShow = false;
				this.$api.post(global.apiUrls.gylApplyOrder, {
					order_id: this.order_no,
					user_id: global.userInfo.id,
					remark: this.modifyRemark
				}).then(res => {
					this.$message.info(res.data.message);
					if (res.data.code == 200) {
						this.modifyRemark = "";
						this.getDetails();
					}
				})
				
			},
			// 预览收获凭据
			previewImage(index) {
				let _this = this;
				uni.previewImage({
					current: index, // 当前显示图片索引
					urls: _this.receipt_image // 需要预览的图片http链接列表
				});
			},

			// 复制订单号
			copyOrderNo(text) {
				uni.setClipboardData({
					data: text,
					success: function() {
						uni.showToast({
							title: '复制成功',
							icon: 'none',
							duration: 800
						});
					},
					fail: function() {
						uni.showToast({
							title: '复制失败',
							icon: 'none',
							duration: 800
						});
					}
				});
			}
		}
	}
</script>

<style lang="scss" scoped>
	.page {
		min-height: calc(100vh - var(--window-bottom));
		background: url(https://www.shiyaocanyin.com/images/8.png) no-repeat #f5f5f5;
		background-size: 100% auto !important;

		.bar_info {
			width: 750rpx;
			height: 88rpx;
			overflow: hidden;
			z-index: 10;
			position: fixed;
			top: 0rpx;
			background: url(https://www.shiyaocanyin.com/images/8.png) no-repeat;
			background-size: 100% auto !important;

			.title_bar {
				padding: 0 32rpx;
				display: flex;
				justify-content: space-between;
				align-items: center;

				.title_bar_left {
					width: 50rpx;

					.title_bar_left_icon {
						width: 18rpx;
						height: 32rpx;
					}
				}

				.title_bar_center {
					line-height: 88rpx;
					font-size: 36rpx;
					font-weight: 400;
				}

				.title_bar_right {
					width: 50rpx;
				}
			}
		}

		.save_btn {
			width: 700rpx;
			height: 80rpx;
			background: #41AF36;
			border-radius: 50rpx;
			font-size: 30rpx;
			font-weight: 500;
			color: #fff;
			text-align: center;
			line-height: 80rpx;
			margin: 120rpx auto 0;
		}
	}

	.order_status {
		padding: 0 20rpx;

		.status_le {
			transform: translateY(-20rpx);

			image {
				width: 40rpx;
				height: 40rpx;
				margin-right: 16rpx;
			}

			text {
				font-weight: 500;
				font-size: 42rpx;
				color: #3D3D3D;
			}
		}

		.status_ri {
			width: 225rpx;
			height: 225rpx;

			image {
				width: 100%;
				height: 100%;
			}
		}
	}

	.shop_info {
		background: #fff;
		padding: 30rpx 20rpx 30rpx 30rpx;
		border-radius: 10rpx;
		margin: -75rpx 20rpx 0;
		position: relative;
		z-index: 5;

		.shop_item {
			margin-bottom: 12rpx;

			.shop_img {
				width: 140rpx;
				height: 140rpx;
				border-radius: 8rpx;
			}

			/deep/.u-lazy-item {
				width: 140rpx !important;
				height: 140rpx !important;
			}

			.information {
				flex: 1;
				margin: 0 30rpx;

				.shop_name {
					font-weight: 500;
					font-size: 32rpx;
					color: #3D3D3D;
					display: -webkit-box;
					-webkit-box-orient: vertical;
					-webkit-line-clamp: 1;
					/* 定义显示的行数 */
					overflow: hidden;
					text-overflow: ellipsis;
				}

				.shop_price {
					margin-top: 8rpx;
					font-weight: 400;
					font-size: 24rpx;
					color: rgba(0, 0, 0, 0.5);

					image {
						width: 24rpx;
						height: 26rpx;
						margin-right: 10rpx;
					}
				}

				.price_info {
					margin-top: 8rpx;

					.price_1 {
						font-weight: 500;
						font-size: 24rpx;
						color: #3D3D3D;
					}

					.price_2 {
						font-weight: 500;
						font-size: 30rpx;
						color: #3D3D3D;
					}

					.price_3 {
						color: #989898;
						font-size: 24rpx;
						font-weight: 500;
					}

					.price_4 {
						display: inline-block;
						width: 24rpx;
					}
				}
			}

			.return_view {
				width: 100rpx;
				height: 80rpx;
			}

			.return_view_1 {
				width: 80rpx;
				height: 85rpx;
				margin-left: 20rpx;
			}

			.edit_btn {
				padding: 2rpx 24rpx;
				border-radius: 8rpx;
				background: #41AF36;
				font-size: 20rpx;
				color: #fff;
			}

			.del_btn {
				padding: 2rpx 24rpx;
				border-radius: 8rpx;
				background: #FF532E;
				font-size: 20rpx;
				color: #fff;
				margin-left: 24rpx;
			}
		}

		.item_info {
			margin-bottom: 12rpx;

			.remark_text {
				font-size: 24rpx;
			}
		}

		.merchandise {
			padding: 0 0 18rpx;
			border-bottom: 1px solid rgba(0, 0, 0, 0.1);

			.merchandise_le {
				font-weight: 400;
				font-size: 26rpx;
				color: #3D3D3D;
			}

			.merchandise_ri {
				font-weight: 500;
				font-size: 26rpx;
				color: #000000;
			}
		}

		.shop_amount {
			margin-top: 20rpx;

			.amount_1 {
				font-weight: 500;
				font-size: 26rpx;
				color: #000000;
			}

			.amount_2 {
				font-weight: 500;
				font-size: 26rpx;
				color: #D43C3B;
			}
		}
	}

	.po_title {
		display: flex;
		justify-content: flex-end;

		image {
			width: 84rpx;
			height: 84rpx;
		}
	}

	.shop_content {
		padding: 0 40rpx 28rpx;

		.item_left_img {
			width: 180rpx;
			height: 180rpx;
		}

		/deep/.u-lazy-item {
			width: 180rpx !important;
			height: 180rpx !important;
		}

		.item_right {
			width: calc(100% - 180rpx);
			padding: 0 0 0 30rpx;

			.shop_name {
				font-weight: 500;
				font-size: 32rpx;
				color: #3D3D3D;
				text-overflow: ellipsis;
				overflow: hidden;
				white-space: nowrap;
			}

			.shop_price {
				margin-top: 60rpx;

				.price_text {
					.price_1 {
						color: #D43C3B;
						font-size: 24rpx;
						font-weight: 600;
					}

					.price_2 {
						color: #D43C3B;
						font-size: 40rpx;
						font-weight: 600;
						margin-right: 24rpx;
					}

					.price_3 {
						color: #989898;
						font-size: 24rpx;
						font-weight: 500;
					}
				}

				.shop_num {
					image {
						width: 60rpx;
						height: 40rpx;
					}

					.shop_num_input {
						text-align: center;
						width: 60rpx;
						font-weight: 400;
						font-size: 26rpx;
						color: #3D3D3D;
					}
				}
			}
		}
	}

	.edit_item {
		display: flex;
		align-items: center;
		margin: 15rpx 24rpx 0;

		.edit_item_1 {
			width: 100rpx;
			font-size: 28rpx;
		}

		.edit_item_2 {
			background: #eee;
			flex: 1;
			height: 60rpx;
			padding: 0 24rpx;
			font-size: 26rpx;
			border-radius: 8rpx;
		}
	}

	.confirm_btn {
		padding: 0rpx 28rpx 32rpx;
		margin-top: 32rpx;

		.add_btn_1 {
			width: 320rpx;
			height: 80rpx;
			background: #f6f7f9;
			border-radius: 50rpx;
			font-weight: 500;
			font-size: 30rpx;
		}

		.add_btn_2 {
			width: 320rpx;
			height: 80rpx;
			background: #41AF36;
			border-radius: 50rpx;
			font-weight: 500;
			font-size: 30rpx;
			color: #FFFFFF;
		}
	}

	.content_bg {
		margin: 20rpx 20rpx 0;
		background: #fff;
		border-radius: 10rpx;
		padding: 30rpx;

		.content_item {
			margin-top: 28rpx;

			.content_item_le {
				font-weight: 400;
				font-size: 26rpx;
				color: rgba(61, 61, 61, 0.5);
			}

			.content_item_ri {
				font-weight: 500;
				font-size: 26rpx;
				color: #000000;

				.copy_text {
					font-size: 26rpx;
					margin-left: 24rpx;
					color: #41AF36;
				}
				.remark_input {
					font-size: 26rpx;
					text-align: right;
				}
			}
		}
	}

	.receipt_image {
		margin-top: 28rpx;
		overflow: hidden;

		image {
			float: left;
			width: 148rpx;
			height: 148rpx;
			border-radius: 8rpx;
			margin: 0 16rpx 16rpx 0;
		}

		image:nth-child(4n+4) {
			margin-right: 0;
		}
	}

	.content_title {
		font-weight: 500;
		font-size: 36rpx;
		color: #3D3D3D;
		padding-bottom: 18rpx;
		border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	}

	.details_btn {
		position: fixed;
		bottom: 0;
		width: 100%;
		height: 110rpx;
		padding: 15rpx 30rpx;
		background: #f5f5f5;
		z-index: 99;

		.btn_1 {
			display: flex;
			align-items: center;
			justify-content: center;
			width: 200rpx;
			height: 70rpx;
			background: #41AF36;
			border-radius: 50rpx;
			font-weight: 500;
			font-size: 28rpx;
			color: #fff;
			margin-left: 24rpx;
		}
	}

	.codeLogin_fd1_1_c2 {
		font-size: 26rpx;
		color: #41AF36;
		font-weight: 500;
		margin-left: 30rpx;
	}

	.search_flex_2 {
		background: #fff;
		// margin: 0rpx 105rpx 0rpx 105rpx;
		border-radius: 25rpx 25rpx 25rpx 25rpx;
		padding: 40rpx 0rpx 0rpx 0rpx;
	}

	.search_fd2_2_c1 {
		background: transparent;
		line-height: 90rpx;
		border-radius: 0rpx 0rpx 16rpx 0rpx;
		font-size: 32rpx;
		color: #41AF36;
		width: 269rpx;
		height: 90rpx;
	}

	.search_fd2_2_c0 {
		border-right: 1px solid #EEEEEE;
		background: transparent;
		line-height: 90rpx;
		border-radius: 0rpx 0rpx 0rpx 16rpx;
		font-size: 32rpx;
		color: #999;
		height: 90rpx;
		width: 270rpx;
	}

	.search_fd2_2 {
		border-top: 1px solid #eee;
	}

	.search_fd2_1 {
		font-size: 32rpx;
		font-weight: 500;
		color: #333333;
		margin: 48rpx 0rpx 60rpx 0rpx;
	}

	.search_fd2_0 {
		color: #333333;
		font-size: 36rpx;
		font-weight: 500;
		line-height: 45rpx;
	}
	
	.warp {
		display: flex;
		align-items: center;
		justify-content: center;
		height: 100%;
	}
	
	.rect {
		width: 500rpx;
		height: 450rpx;
		background-size: 100% 100%;
		background: #fff;
		border-radius: 24rpx;
	}
	.authentication_title {
		font-weight: bold;
		font-size: 30rpx;
		line-height: 43rpx;
		padding: 40rpx 0 20rpx;
		text-align: center;
	}
	.authentication_text {
		height: 220rpx;
		background: #f6f7f9;
		border-radius: 16rpx;
		margin: 0 28rpx 28rpx;
		textarea {
			width: 100%;
			height: 100%;
			padding: 16rpx;
			font-size: 28rpx;
		}
	}
	.authentication_btn {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 0 35rpx;
		.btn_1 {
			width: 180rpx;
			height: 60rpx;
			background: #C2C2C2;
			color: #fff;
			font-size: 28rpx;
			font-weight: 500;
			border-radius: 44rpx;
		}
		.btn_2 {
			width: 180rpx;
			height: 60rpx;
			background: #41AF36;
			color: #fff;
			font-size: 28rpx;
			font-weight: 500;
			border-radius: 44rpx;
		}
	}
</style>